package com.kingyea.mobilepolice.apimanage.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistrar;
import org.springframework.format.FormatterRegistry;

/**
 * 格式化注册配置
 *
 * @author Mr.Lin
 * @version v1.0.0
 * @description
 * @date Created in 2018/01/01 15:45
 */
@Configuration
public class FormatterRegistrarCfg implements FormatterRegistrar {


    @Override
    public void registerFormatters(FormatterRegistry registry) {
        registry.addFormatter(new DateAutoFormatter());
    }

}